package com.itheima.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

@Configuration //声明这是一个配置类
@ComponentScan("com.itheima") //让spring容器对这包下进行扫描
@PropertySource("classpath:jdbc.properties") //引用jdbc配置文件
//相当于 :<!--<import resource="classpath:xxxxx.xml"/>
@Import({JdbcConfig.class,MybatisConfig.class}) //引入分配置类
public class SpringConfiguration {
}
